import request from '@/utils/request'

// 获取操作日志
export function getOperationLogs(params) {
  return request({
    url: '/logs/operation',
    method: 'get',
    params
  })
}

// 获取登录日志
export function getLoginLogs(params) {
  return request({
    url: '/logs/login',
    method: 'get',
    params
  })
}

// 首页统计
export function getDashboardStats() {
  return request({
    url: '/dashboard/stats',
    method: 'get'
  })
}